package com.yznote.cloudesk.compileservice;

import com.yznote.cloudesk.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "http://localhost:1002/terminal",name = "terminalService")
public interface TerminalService {
    @GetMapping("/connect")
    Result connect(@RequestParam("userId") Long userId, @RequestParam("name") String name, @RequestParam("password") String password, @RequestParam("host") String host, @RequestParam("port") Integer port);

    @GetMapping("/sendCmd")
    Result sendCmd(@RequestParam("userId") Long userId,@RequestParam("cmd") String cmd);
}
